#include "dog.h"

using namespace std;
namespace C {
    void Dog::setName(char *name) {
        this->name = name;
    }

    void Dog::setAge(int age) {
        this->age = age;
    }

    void Dog::printInfo(void) {
//        printf("name = %s, age = %d\n", name, age);
        cout << "name = " << name << ", age = " << age << endl;
    }

    void printVersion(void) {
//        printf("Dog v1, by waylon\n");
        cout << "Dog v1, by waylon" << endl;
    }
}